<?php

namespace app\admin\model\resume;

use think\Model;


class Workexp extends Model
{





    // 表名
    protected $name = 'resume_workexp';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'datetime';
    protected $dateFormat = 'Y-m-d H:i:s';

    // 定义时间戳字段名
    protected $createTime = 'CreatedTime';
    protected $updateTime = 'UpdatedTime';
    protected $deleteTime = false;

    // 追加属性
    protected $append = [
        'KeepSalaryConfidential_text'
    ];



    public function getKeepsalaryconfidentialList()
    {
        return ['1' => __('Keepsalaryconfidential 1'), '0' => __('Keepsalaryconfidential 0')];
    }


    public function getKeepsalaryconfidentialTextAttr($value, $data)
    {
        $value = $value ? $value : (isset($data['KeepSalaryConfidential']) ? $data['KeepSalaryConfidential'] : '');
        $list = $this->getKeepsalaryconfidentialList();
        return isset($list[$value]) ? $list[$value] : '';
    }




}
